#include<stdio.h>
#include<string.h>
void main()
{
    char arrStack[50] = "123(234(345(2355";
    
    int topStack = 10;

    int i, len = strlen(arrStack);

    i=len-1;

    while('(' != arrStack[i] && 0<=i)
    {
        i--;
    }

    int j = i;
    printf("%s",arrStack);
    getchar();
    arrStack[0] = 'a';
    getchar();
    /*while (j<len)
    {
        printf("buggg! \n");
        arrStack[j] = arrStack[j+1];
        j++;
    }*/

    topStack--;

    printf("%s %d ", arrStack, topStack);
}
